<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class App_hrd extends MY_Controller {
	
	function __construct()
	{
		parent::__construct(); 
		
		$this->load->model('it_userid_model', 'User');
		$this->load->model('it_menu_model', 'Menu');
		$this->load->model('sis_store_procedure_model', 'SP');
	}
	
	
	
	function dashboard()
	{
		$this->secure_session();
		$arr_session	= $this->session_read();
		
		$ls_userid = $arr_session['user_id'];

		// Get User Role
		$data["arr_role"] = $this->App->GetUserGetRole($ls_userid);
		
		$data["arr_directorate"] = array();
		
		$li_year = get('an_year')=='' ? date('Y')+1 : get('an_year');
		$ls_status = get('as_approval_status')=='' ? 'FINAL' : get('as_approval_status');
		
		$tot_budget= array();
		$tot_realization= array();
		
		$arr_graph = array(array('name'=>'Budget', 'data'=>$tot_budget), array('name'=>'Realization', 'data'=>$tot_realization));
		$data["arr_graph"] = json_encode($arr_graph);
		$data["ln_year"] = $li_year;
		$data["ls_status"] = $ls_status;
		
		
		$this->load->view('app_hrd/dashboard', $data);
		
	}
}
?>